//
// Created by JYL on 2024-06-17.
//

#ifndef WHEELTEC_VOLTAGE_TASK_H
#define WHEELTEC_VOLTAGE_TASK_H

#include "main.h"

#define FULL_BATTER_VOLTAGE     12.6f   //4.2*3=12.6
#define LOW_BATTER_VOLTAGE      11.1f   //3.7*3=11.1    (about 20%)

#define VOLTAGE_DROP            0.30f   //电压偏差校准参数

typedef struct {
    float battery_voltage;          //电池电压
    float electricity_percentage;   //电能百分比
    float Temperature;              //内存温度
    float Resister;                 //旋转电位器
}ADC;

extern ADC adc;

#endif //WHEELTEC_VOLTAGE_TASK_H
